package com.sxu.douban.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户星级点评
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Rating {

    //评价id主键
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    //用户id
    @TableField(value = "u_id")
    private String userId;

    //电影编号
    @TableField(value = "m_id")
    private String movieId;

    //电影类型
    private String type;

    //评分 1-5
    private Integer rate;

}
